localStorage.setItem("register","false")
        $("#ipt").click(function() {
            if(this.checked) {
                $("#btn").removeAttr("disabled")
                $("#btn").attr("style","color:red")
            }else {
                $("#btn").attr({"disabled":"disabled",style:"color:#fff"})
            }
        })
        $("#btn").click(function() {
            if($("#phon").val()==Number(localStorage.getItem("name"))&& $("#pwd").val()==123456) {
                alert("登录成功");
                localStorage.setItem("register","true")
                window.location.href="index.html";
            }else {
                alert("用户名或密码错误！")
                $('#phon').val('')
                $("#pwd").val('')
            }
        })